import { Http } from "../utils/http";

class Banner {
  static locationB = "b-1";
  static locationG = "b-2";

  // 获取首页banner
  static async getHomeLocationB() {
    return await Http.request({
      url: `/v1/banner/name/${Banner.locationB}`,
      method: "GET",
    });
  }

  // 获取首页主题（多图）banner
  static async getHomeLocationG() {
    return await Http.request({
      url: `/v1/banner/name/${Banner.locationG}`,
    });
  }
}
export { Banner };
